package org.dromara.patrol.domain.model.snap;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;

import java.io.Serial;
import java.io.Serializable;


@Data
public class ChannelInfos implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 通道号
     */
    @NotNull(message = "通道号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelNo;
    /**
     * 通道名称
     */
    @NotBlank(message = "通道名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String channelName;
}
